package com.itedge.infrastructure.domain;

/**
 * Interface for all persistent Entities.
 * 
 * @author jhe
 *
 */
public interface IEntity {
	
	/**
	 * Returns unique Id of the entity.
	 * 
	 * @return entity id
	 */
	public Long getId();
	
	/**
	 * Returns version number - incremented each time entity is persisted.
	 * 
	 * @return entity version
	 */
	public Integer getVersion();

}
